package cn.edu.bitc;

public class Java_05 {
    public static void main(String[] args) {
        //掌握基本的算术运算符的使用
        int a = 10;
        int b = 2;
        System.out.println(a + b);
        System.out.println((a - b));
        System.out.println((a * b));
        System.out.println((a / b));
        System.out.println((5 / 2));
        System.out.println((5.0 / 2));

        int i = 5;
        int j = 2;
        System.out.println((1.0 * i / j));
        System.out.println((a % b));
        System.out.println((3 / 2));

        System.out.println("-------------------------------------------------");
        //掌握使用+作为连接符的情况
        int a2 = 5;
        System.out.println("abc" + a2);
        System.out.println((a2 + 5));
        System.out.println("itheima" + a2 + 'a');


    }
}
